package com.ccz.demo.design.subscribe;

/**
 * @ClassName ActObserver
 * @Author caihaoyun
 * @Date 2020/4/2
 * @Version V1.0
 * 具体的观察者
 **/
public class ActObserver implements Fan{

    private String fansName;

    public ActObserver(String fansName) {
        this.fansName = fansName;
    }

    @Override
    public void update(String message) {
        System.out.println(fansName + "输出：" + message);
    }
}
